package com.itheima.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.domain.Book;

import java.util.List;

/**
 * 业务层方法的取名一般按照业务取名，比如登录就叫login，但是在dao层就叫做selectByUsernameAndPassword
 */
public interface BookService {
    Boolean insert(Book book);
    Boolean deleteById(Integer id);
    Boolean updateById(Book book);
    Book selectById(Integer id);
    List<Book> selectAll();
    IPage<Book> selectByPage(Integer current, Integer pageSize);


}
